/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.financial.entity.declarationnotice;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 报关通知Entity
 * @author shengbin
 * @version 2021-03-05
 */
@Table(name="t_customs_declaration_notice_detail", alias="a", columns={
		@Column(name="customs_declaration_notice_detail_id", attrName="customsDeclarationNoticeDetailId", label="报关通知明细ID", isPK=true),
		@Column(name="frame_number", attrName="frameNumber", label="车架号"),
		@Column(name="car_id", attrName="carId", label="车辆"),
		@Column(name="brand", attrName="brand", label="品牌"),
		@Column(name="area", attrName="area", label="版型"),
		@Column(name="model", attrName="model", label="车型"),
		@Column(name="customs_declaration_notice_id", attrName="customsDeclarationNoticeId.customsDeclarationNoticeId", label="报关通知ID"),
		@Column(name="row_number", attrName="rowNumber", label="行号")
	}, orderBy="a.customs_declaration_notice_detail_id ASC"
)
public class TdeclarationNoticeDetail extends DataEntity<TdeclarationNoticeDetail> {

	private static final long serialVersionUID = 1L;
	private String customsDeclarationNoticeDetailId;		// 报关通知明细ID
	private String frameNumber;		// 车架号
	private String carId;		// 车辆
	private String brand;		// 品牌
	private String area;		// 版型
	private String model;		// 车型
	private TdeclarationNotice customsDeclarationNoticeId;		// 报关通知ID 父类
	private Long rowNumber;     // 行号

	public TdeclarationNoticeDetail() {
		this(null);
	}


	public TdeclarationNoticeDetail(TdeclarationNotice customsDeclarationNoticeId){
		this.customsDeclarationNoticeId = customsDeclarationNoticeId;
	}

	public String getCustomsDeclarationNoticeDetailId() {
		return customsDeclarationNoticeDetailId;
	}

	public void setCustomsDeclarationNoticeDetailId(String customsDeclarationNoticeDetailId) {
		this.customsDeclarationNoticeDetailId = customsDeclarationNoticeDetailId;
	}

	@Length(min=0, max=100, message="车架号长度不能超过 100 个字符")
	public String getFrameNumber() {
		return frameNumber;
	}

	public void setFrameNumber(String frameNumber) {
		this.frameNumber = frameNumber;
	}

	@Length(min=0, max=64, message="车辆长度不能超过 64 个字符")
	public String getCarId() {
		return carId;
	}

	public void setCarId(String carId) {
		this.carId = carId;
	}

	@Length(min=0, max=2, message="品牌长度不能超过 2 个字符")
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	@Length(min=0, max=64, message="版型长度不能超过 64 个字符")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@Length(min=0, max=100, message="车型长度不能超过 100 个字符")
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	@Length(min=0, max=64, message="报关通知ID长度不能超过 64 个字符")
	public TdeclarationNotice getCustomsDeclarationNoticeId() {
		return customsDeclarationNoticeId;
	}

	public void setCustomsDeclarationNoticeId(TdeclarationNotice customsDeclarationNoticeId) {
		this.customsDeclarationNoticeId = customsDeclarationNoticeId;
	}

	public Long getRowNumber() {
		return rowNumber;
	}

	public void setRowNumber(Long rowNumber) {
		this.rowNumber = rowNumber;
	}
}
